package com.example.graduation.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author Jeffery
 * Address实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Address实体类对象")
@TableName("address")
public class Address implements Serializable {
    @ApiModelProperty(name = "addressId", value = "地址ID")
    @TableId(value = "address_id", type = IdType.ASSIGN_ID)
    private String addressId;

    @ApiModelProperty(name = "addressName", value = "地址名称")
    @TableField(value = "address_name")
    private String addressName;

    @ApiModelProperty(name = "address_create_time", value = "地址创建时间")
    @TableField(value = "address_create_time")
    private Timestamp createTime;

    @ApiModelProperty(name = "address_update_time", value = "地址修改时间")
    @TableField(value = "address_update_time")
    private Timestamp updateTime;

    @ApiModelProperty(name = "address_version", value = "乐观锁")
    @TableField(value = "address_version")
    private int version;

    @ApiModelProperty(name = "address_is_deleted", value = "逻辑删除 0:未删除 1:已删除")
    @TableField(value = "address_is_deleted")
    private int isDeleted;
}
